<div id="advices" class="stock_view">
	<div id="title">库存结算单-按月份</div>
	<div id="general">
		<div id="order_cost">当月应付货款<strong><?php echo $advice['general']['order_cost'] ?>￥</strong></div>
		<div id="goods_value">货物总值<strong><?php echo $advice['general']['goods_value'] ?>￥</strong></div>
		<div class="clear"></div>
	</div>
	<div id="details">
		<?php foreach($advice['details'] as $key=>$val){ ?>
		<div class="main_goods">
			<div class="main_image">
				<img src="<?php echo $val['info']['taobao_info']['image'] ?>" />
				<div class="number-code">
					<div>货号<br /><span><?php echo $val['info']['number'] ?></span></div>
					<div>厂家编号<br /><span><?php echo $val['info']['search_code'] ?></span></div>
				</div>
			</div>
			<div class="sub_goods">
				<?php foreach($val['sub'] as $k=>$v){ ?>
				<div class="each_sub_goods">
					<div class="attr"><?php echo $v['info']->attribute; ?></div>
					<div class="price"><?php echo $v['price'] ?>￥</div>
					<div class="total_quantity">-</div>
					<div class="hide stock_quantity">
						<?php foreach ($v['stock'] as $stock) { ?>
						<div class="stock"><?php echo $stock['store_id']; ?></div>
						<div class="quantity"><?php echo $stock['quantity']; ?></div>
						<?php } ?>
						<div class="clear"></div>
					</div>
				</div>
				<?php } ?>
			</div>
			<div class="clear"></div>
		</div>
		<?php } ?>
	</div>
</div>
<script type="text/javascript">
$(function(){
	//格式化
	advice.stock.view.init();
});
</script>
<?PHP //var_dump($advice) ?>